POV-Ray : Newsgroups : povray.general : Int() Problems : Int() Problems Server Time
20 Nov 2024 06:30:24 EST (-0500)
  Int() Problems  
From: Tom Melly
Date: 16 Oct 2001 17:29:52
Message: <3bcca6d0@news.povray.org>
I'm having a problem with the following scene under 3.5b5. The use of int is
generating an error. I'm sort of assuming I'm doing something stupid, since
if it was a bug I would be surprised if no one had come across it before
(hence the post here rather than beta). I'm getting the error: "Parse Error:
Expected 'function identifier', } found instead"

I'm downloading beta 6 to see if that fixes it, but if anyone can spot what
I'm doing wrong enquiring minds want to know. Here's the simplified
function:

#include "functions.inc"
#declare fn_X = function(x,y,z) {int(x) }
isosurface {
  function { fn_X(x, y, z) }
  contained_by { box { -1, 1 } }
  accuracy 0.001
  max_gradient 4
  pigment{Yellow}
}


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.